/* 请求函数配置 */
import USER from 'service/apis/user'
import Request from 'service/request'

export async function login({ username, password }) {
  const data = Request({
    url: USER.LOGIN + '&username=' + username + '&password=' + password,
    isForm: 0,
    method: 'POST',
    Authorization: 'Basic dGVzdF9jbGllbnQ6dGVzdF9zZWNyZXQ=',
  })
  return data
}